import {
    Navigate
} from 'react-router-dom'
import React from 'react'
let Onec = React.lazy(()=>import('../views/Onec'))
let Twoc = React.lazy(()=>import('../views/Twoc'))
let Three = React.lazy(()=>import('../views/Three'))

const routes = [
    {
        path:'/onec',
        element:<Onec></Onec>
    },
    {
        path:'/twoc/:id',
        element:<Twoc></Twoc>
    },
    {
        path:'/three',
        element:<Three></Three>
    },
    {
        path:'/',
        element:<Navigate to = "/onec"/>
    },
]
export default routes